<div class="el-switch" ng-class="{'is-checked': model, 'is-disabled': disabled}" ng-click="toggle()">
  <input type="checkbox" name="" true-value="true" class="el-switch__input">
  <!-- 状态文字 -->
  <span class="el-switch__label el-switch__label--left" ng-class="{ 'is-active': !model }" ng-if="inactiveText">
    {{ inactiveText }}
  </span>
  <!-- 核心轨道 -->
  <span class="el-switch__core"
    style="width: {{switchWidth}}px; border-color: {{model ? activeColor : inactiveColor}}; background-color: {{model ? activeColor : inactiveColor}};"></span>

  <span class="el-switch__label el-switch__label--right" ng-class="{ 'is-active': model }" ng-if="activeText">
    {{ activeText }}
  </span>
</div>